home *** CD-ROM | disk | FTP | other *** search
/ The 640 MEG Shareware Studio 2 / The 640 Meg Shareware Studio CD-ROM Volume II (Data Express)(1993).ISO / business / act1.zip / HINSTALL.BAT < prev    next >
DOS Batch File  |  1989-04-20  |  2KB  |  59 lines

  1. echo off
  2.        if "%1" == "" goto err1
  3.        if "%2" == "" goto err1
  4.        if "%2" == "c:" GOTO ERR5
  5.        if "%2" == "C:" GOTO ERR5
  6.        if "%2" == "d:" GOTO ERR5
  7.        if "%2" == "D:" GOTO ERR5
  8. :ERR5
  9.        %2
  10.        MD\ACT
  11.        CD\ACT
  12.        %1
  13.        echo off
  14.        if errorlevel 1 goto err2
  15.        echo Performing Program Installation of System Disk #1
  16.        echo off
  17.        copy %1ACCOUNT.EXE %2
  18.        copy %1COLOR.SET %2
  19.        copy %1MONO.SET %2
  20.        echo off
  21.        if "%2" == "C:" goto err4
  22.        if "%2" == "c:" goto err4
  23.        if "%2" == "D:" goto err6
  24.        if "%2" == "d:" goto err6
  25.        if "%2" == "B:" goto err3
  26.        if "%2" == "b:" goto err3
  27.        if "%1" == "B:" goto err4
  28.        if "%1" == "b:" goto err4
  29.        echo Installation Completed Successfully
  30.        goto end
  31. :err1
  32.        echo 'From:' or 'To:' Drive-ID Parameters missing or invalid.
  33.        goto end
  34. :err2
  35.        echo Installation Ended due to Error(s).
  36.        goto end
  37. :err3
  38.        B:
  39.        echo Installation of System Disk #1 Completed Sucessfully
  40.        echo Floppy User! Now Press F3 & Insert System Disk #2 in Drive [A]
  41.        echo and a Formatted Floppy in Drive [B] and Press Return.
  42.        A:
  43.        goto end
  44. :err4
  45.        C:
  46.        echo Installation of System Disk #1 Completed Sucessfully
  47.        echo Hard-Drive User! Now Press F3 & Insert System Disk #2 in Drive [%1]
  48.        echo and Press Return.
  49.        %1
  50.        goto end
  51. :err6
  52.        D:
  53.        echo Installation of System Disk #1 Completed Sucessfully
  54.        echo Hard-Drive User! Now Press F3 & Insert System Disk #2 in Drive [%1]
  55.        echo and Press Return.
  56.        %1
  57.        goto end
  58. :end
  59.